<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=tejia"><i class="back"></i></a></div>
      <div class="t_main">特价抢购</div>
    </div>
    <div class="paddingheight"></div>
    <form method="post" action="/index.php?m=tejia_order&a=buysave">
<input type="hidden" name="id" value="{$data.id}">
<input type="hidden" name="back_url" value="{$back_url}" />
    <div class="comblock">
      <div class="address_info">
      {foreach item=c key=k from=$address}
 
    
        <p class="info">
        <a href="/index.php?m=user_address&a=add&id={$c.id}">
        <input type="hidden" name="user_address_id"  value="{$c.id}">  <span class="name">{$c.truename}</span> <span class="tel">{$c.telephone}</span><br>
         {$dist_list[$c.province_id]} {$dist_list[$c.city_id]} {$dist_list[$c.town_id]} {$c.address} {$c.sushe}  
         </a>
         </p>
         {foreachelse}
         <p class="info">
         	 <a href="/index.php?m=user_address&a=add">
             添加收货地址
             </a>
         </p>
         {/foreach} 
      </div>
    </div>
    
    <div class="comblock">
  <ul class="cart_new_list clearfix">
  <li>
  	<div class="list clearfix">
                <div class="cart_pic">
                    <a href=""><img src="{$data.imgurl|images_site}.100x100.jpg" class="img"></a>
                </div>
                <div class="cart_content">
                    <div class="tit">{$data.title}</div>
                    <div class="info">
                        <p class="fl">
                            <span class="num">￥{$data.price}</span>
                            
                        </p>

                        <p class="fr">
                            <input type="number"  name="amount" value="1" style="border-radius:5px; width:50px; height:25px; text-align:center; line-height:25px; border:1px solid #ccc;">
                           
                             
                            
                        </p>
                    </div>
                    <div style="font-size:0.8em; line-height:1.3em; color:#666;">限买{$data.limit_num}份</div>

                </div>
            </div>
  </li>
 </ul> 

 
</div>
    <div class="comblock">
	<input type="hidden" name="pay_type" value="wxpay" id="paytype">
    <dl class="cart_change_dl special clearfix">
            <dt>选择付款方式：</dt>
            {foreach item=p key=k from=$pay_type_list}
            <dd tid="paytype"   v="{$k}">
                <span class="select"></span>{$p}
            </dd>
            {/foreach}
            
             

        </dl>
  
  
</div>
   
   <div class="comblock">

  <div class="cart_change_notice">
    <textarea class="area"  name="comment" placeholder="可填写您对口味以及配送时间的要求等"></textarea>
  </div>
</div> 
    
    <button type="submit" class="cart_change_btn">确认抢购</button>
   
  </div>
</div>

 
  {include file="footer.html"} </div>
  
 <script>

$(document).on("click",".cart_change_dl dd",function(e) {
	
	 
		$("#paytype").val($(this).attr("v"));
    $(this).addClass("cur").siblings().removeClass("cur");
});
</script> 
</body>
</html>